<br /><br />
<div id="view-content">
    <?php
    $article = $this->article;
    ?>
    <div class=article><a class='artTitle'
                          href="
                          <?php echo $this->url(array('module' => 'default', 'controller' => 'Article', 'action' => 'read', 'id' => $article->getId())) ?>
                          ">
                              <?php echo $article->getTitle() ?>
        </a>
        <div class='artHead'>
            <?php echo $article->getDate() . " " . $this->translate('view_event_readall_by') . " " . $article->getOwner()->toString() ?>
        </div> 
        <div class="gallery">
            <?php foreach ($article->getPicturePath() as $picture) { ?>
                <a class="fancyGallery" rel="toto" href="/appliweb/<?php echo $picture ?>"><img src="/appliweb/<?php echo $picture ?>
                                                                                                        "/>
                </a>
            <?php } ?>
        </div>
        <div class='content'>
            <?php echo $article->getContent() ?>
        </div>
        <?php
        echo "<div class='comments'>";
        foreach ($article->getComments() as $comment) {
            ?>
            <div class=comment>
                <div class=comHead>
                    <div class="comAvatar">
                        <img src="/appliweb/public/images/visitor.png"/>
                    </div>
                    <div class="comMeta">
                        <div class=comAuthor>
                            <?php echo $comment->getAuthor()->toString(); ?>
                        </div>
                        <div class=comDate>
                            <?php echo $comment->getDate() ?>
                        </div>
                    </div>
                </div>
                <div class='comContent'> 
                    <?php echo $comment->getContent() ?> 
                </div>
            </div>
            <?php
        }
        echo "</div>";

        echo $this->form;
        ?>
    </div>
</div>
<script lang="javascript">
                
    $('.fancyGallery').fancybox({
        'enableEscapeButton':true,
        'overlayShow':true,
        'openEffect' : 'elastic',
        'closeEffect': 'elastic',
        'helpers' : {
            'thumbs' : {
                'width' : 50,
                'height' : 50
            }
        }
        // 'onClosed': function(){ parent.location.reload(true); }
    });
</script>